<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
    <title>基础数据平台</title>
    <link rel="stylesheet" href="../../static/js/plug-in/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="../../static/js/plug-in/font-awesome/css/font-awesome.min.css" />
    <link rel="stylesheet" href="../../static/js/plug-in/dist/css/AdminLTE.css"/>
    <link rel="stylesheet" href="../../static/js/plug-in/dist/css/skins/_all-skins.min.css"/>
    <!--[if lt IE 9]>
    <script src="../../static/js/public/html5shiv.min.js" ></script>
    <script src="../../static/js/public/respond.min.js" ></script>
    <![endif]-->
    <link rel="stylesheet" href="../../static/css/public/public.css" />
    <link rel="stylesheet" href="../../static/js/plug-in/jstree/css/style.min.css" />
    <link rel="stylesheet" href="../../static/js/plug-in/jqueryConfirm/css/jquery-confirm.min.css" />
    <link rel="stylesheet" href="../../static/js/plug-in/my-form-prompt/css/form-prompt.css" />
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        <header class="main-header" id="_header"></header>
        <aside class="main-sidebar" id="_left"></aside>

        <div class="content-wrapper">
            <section class="content-header">
                <h1>用户管理</h1>
                <ol class="breadcrumb">
                    <li>
                        <a href="index.html"><i class="fa fa-dashboard"></i>首页</a>
                    </li>
                    <li>
                        <a href="resource_all.html">用户管理</a>
                    </li>
                    <li>
                        <a href="resource_all.html">用户信息</a>
                    </li>
                </ol>
            </section>
            <section class="content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="box">
                            <div class="box-header">
                                <div class="navbar">
                                    <ul class="nav navbar-nav">
                                   
                                        <li class="pull-left" >
                                            <a href="user-info-add.html">添加用户</a>
                                        </li>
                                        
                                    </ul>
                                </div>
                                <div class="row">
                                    <ul class="col-xs-8 nav navbar-nav">
                                        <li class="col-xs-4">
                                            <select class="form-control">
                                                <option value="1">项目1</option>
                                                <option value="2">项目2</option>
                                                <option value="3">项目3</option>
                                            </select>
                                        </li>
                                    </ul>
                                    <form class="col-xs-3 pull-right">
                                        <div class="input-group">
                                            <input type="text" class="form-control" placeholder="" />
                                            <span class="input-group-btn">
                                                <button class="btn btn-info" type="button">搜索</button>
                                            </span>
                                        </div>
                                    </form>
                                </div>
                            </div>
                            <div class="box-body m-mi-he">
                                <table class="table table-bordered table-hover table-condensed table-striped text-center" id="j-table-1">
                                    <thead>
                                    <tr>
                                        <th>
                                            <label class="my-che-label j-che-1">
                                                <input type="checkbox" name="user" />
                                            </label>
                                        </th>
                                        <th>账号</th>
                                        <th>姓名</th>
                                        <th>工号</th>
                                        <th>邮箱</th>
                                        <th>电话</th>
                                        <th>状态</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody id="users">
                                        
                                    </tbody>
                                </table>
                                <div id="fenye"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>
        <footer class="main-footer" id="_footer"></footer>
        <div class="control-sidebar-bg"></div>
    </div>
</body>
<!--[if IE 9]>
<script src="../../static/js/plug-in/jquery/jquery-1.11.0.js"></script>
<![endif]-->
<script src="../../static/js/plug-in/jquery/jquery-2.2.3.min.js"></script>
<script src="../../static/js/externalr.js"></script>

<script src="../../static/js/plug-in/bootstrap/js/bootstrap.min.js"></script>
	
<script src="../../static/js/plug-in/dist/js/app.min.js"></script>
<script src="../../static/js/plug-in/jqueryConfirm/js/jquery-confirm.min.js"></script>
<script src="../../static/js/plug-in/my-form-prompt/js/form-prompt.js"></script>
<script src="../../static/js/plug-in/my-opt/js/opt.js"></script>
<script src="../../static/js/plug-in/jstree/js/jstree.min.js"></script>
<script src="../../static/js/utils.js"></script>
<link rel="stylesheet" href="../../static/js/layui/css/layui.css">
<script src="../../static/js/jquery.tmpl.min.js"></script>
<script  src="../../static/js/layui/layui.js"></script>
<script src="../../static/js/user/user.js"></script>
<script id="usersTemplate" type="text/x-jquery-tmpl">
{{each(i,item) users}}
    <tr>
        <td>
            <label class="my-che-label j-che-lis-1">
                <input type="checkbox" name="user" />
            </label>
        </td>
        <td>{{= item.id}}</td>
        <td>{{= item.empName}}</td>
        <td>{{= item.empNo}}</td>
        <td>{{= item.email}}</td>
        <td>{{= item.phone}}</td>
        <td class="j-type" typeid="1">
        	 {{if item.status==1}}
            	启用
        	{{else}}
           		禁用
           	{{/if}}
        	
        	</td>
        <td>
            <!--<button type="button" class="btn btn-success btn-xs j-user-info-see">查看</button>-->
            <button type="button" class="btn btn-info btn-xs j-user-set" onclick="edit({{= item.id}});">修改</button>
        </td>
    </tr>
{{/each}}
</script>
<script type="text/jscript">
	function edit(id){
		var url = window.location.href;
		var url = window.location.href;
		var _url=url.substring(0,url.lastIndexOf("/"));
		console.log(_url)
		window.location.href=_url+"/user-info-add.html?id="+id;
	}
</script>
</html>